﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Styx.Helpers;
using System.Windows.Forms;


namespace PetFighterBot
{
    class PetFighterSettings : Settings
    {
        public static PetFighterSettings Instance = new PetFighterSettings();

        public PetFighterSettings()
            : base(Application.StartupPath + "\\Settings\\PetFighter\\PetFighter_v1_1.xml")
        {
            Load();
        }

        ~PetFighterSettings()
        {
            Save();
        }

        [Setting(Explanation = "use NotifyIcon"), DefaultValue(false)]
        public bool useNotifyIcon { get; set; }

        [Setting(Explanation = "wait Xsec then do action"), DefaultValue(3)]
        public int WaitTime { get; set; }

        [Setting(Explanation = "auto Revive"), DefaultValue(true)]
        public bool autoRevive { get; set; }

        [Setting(Explanation = "use Stablemaster"), DefaultValue(true)]
        public bool useStablemaster { get; set; }

        [Setting(Explanation = "check for updates"), DefaultValue(false)]
        public bool CheckForUpdates { get; set; }

        [Setting(Explanation = "last DateTime for Updates check"), DefaultValue(0)]
        public long LastUpdateCheck { get; set; }

        [Setting(Explanation = "PvP start Pet slotID"), DefaultValue(1)]
        public int PvPStartPetSlotID { get; set; }

        [Setting(Explanation = "PetBattle_Wild"), DefaultValue(true)]
        public bool PetBattle_Wild { get; set; }

        [Setting(Explanation = "TrapIfNeed"), DefaultValue(true)]
        public bool TrapIfNeed { get; set; }

        [Setting(Explanation = "LevelMode"), DefaultValue(true)]
        public bool LevelMode { get; set; }

        [Setting(Explanation = "give up if all pets hp% is less then X"), DefaultValue(30)]
        public int GiveUpAt { get; set; }

        [Setting(Explanation = "--"), DefaultValue(false)]
        public bool ProfileRnd { get; set; }

        [Setting(Explanation = "--"), DefaultValue(true)]
        public bool ProfileCir { get; set; }

        [Setting(Explanation = "--"), DefaultValue(false)]
        public bool ProfileBou { get; set; }
    }
}
